<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title><!--遗留物品--></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="css/project/ui-list-v3.css">

    <link rel="stylesheet" href="css/project/ui-res-v3.css">
    <link rel="stylesheet" href="css/project/ui-input-v3.css">
	<link rel="stylesheet" href="css/project/ui-btn-v3.css">
    <link rel="stylesheet" href="css/project/ui-color-v3.css">
	<link rel="stylesheet" href="css/project/style.css">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
	<link rel="stylesheet" href="css/project/style.css">
	<link rel="stylesheet" href="css/zv_common.css">
    <script src="js/zy_control.js"></script>
    <script src="js/zy_click.js"></script>
	<script src="js/zy_json.js"></script>
	<script src="js/main.js"></script>
	<script src="js/init.js"></script>
	<script src="js/talkingdata.js"></script>
	<style>
		.zv_h1{ height:1.4em; line-height:1.4em; font-size:0.9em; padding:0px; margin:0px}
		.lis-th{
	width:4em;
	padding:0.0em 0.4em 0em 0px;
	min-height:4em;
}
	</style>
</head>
<body class="um-vp" ontouchstart>
	<div id="kitsch_searchresult">
	</div>
<div id="LoadMore">
</div>
</body>
<script>
zy_init();
window.uexOnload=function(type){
	Loading(0);
	if(!type){
		uexWindow.setBounce("0");
		IC.talkingDataCount("遗留物品录入查询","0017");
	}
	kitsch_searchresult();
}
function LoadMore(page)
{
		$$("LoadMore").innerHTML = '<div style="height:2.6em;  line-height:2.6em;background:#e8e8e8; text-align:center; font-size:0.9em; color:#4d4d4d; overflow:hidden; display:block; border-top:solid #ffffff 1px">加载中...</div> ';
	ueppscript("kitsch_search","content","OpenkSearch("+page+")");
}
function kitsch_searchresult(){
	var kitsch = localStorage.getItem("zvData");
	var nextpage=localStorage.getItem("kitsch_page_next");
	if(nextpage>2)
	{
		 var kitsch_data=kitsch.replace('[[', '') 
		 kitsch_data= kitsch_data.replace(']]', '')
		 
		 var kitsch_data_s= localStorage.getItem("kitsch_data_s");	
		 var kitsch_json=kitsch_data_s+","+kitsch_data
		 localStorage.setItem("kitsch_data_s",kitsch_json);
	}
	else
	{
		var  kitsch_data=kitsch.replace('[[', '') 
		 kitsch_data= kitsch_data.replace(']]', '')
		 localStorage.setItem("kitsch_data_s",kitsch_data);	
	}
	 kitsch=kitsch.replace('[[', '[') 
	 kitsch= kitsch.replace(']]', ']') 
	 var kitschdata = strToJson(kitsch)
	 var strx =$$("kitsch_searchresult").innerHTML;
	for(var i=0;i<kitschdata.length;i++)	
	{
	 	var orderx=(parseInt(i)+1)%4;
		if(parseInt(orderx)==0)
		{
			orderx= 4;
		}
		var  ITEM_PICTURE='images/nopic.jpg'
		if(kitschdata[i].ITEM_PICTURE!='')
		{
			ITEM_PICTURE=img_url_url+kitschdata[i].ITEM_PICTURE
		}
		var ITEM_NAME=''//物品名称
		if(kitschdata[i].ITEM_NAME!=''&&kitschdata[i].ITEM_NAME!='undefined'&&kitschdata[i].ITEM_NAME!=undefined)
		{
			ITEM_NAME=kitschdata[i].ITEM_NAME
		}
		var PICK_DATE = kitschdata[i].PICK_DATE;
		PICK_DATE = PICK_DATE.substring(0,4)+"-"+PICK_DATE.substring(4,6)+"-"+PICK_DATE.substring(6,8);
		strx += '<div class="ubb  zv_bb zv_lbg'+orderx+'" style="padding:0px;margin:0px"  ontouchstart="zy_touch(\'zvbtn-act\')"  onClick="OpenkDetail('+kitschdata[i].ID+')" >'
    	strx += '<ul  class="uc-t ub t-bla ub-ac lis">'
    	strx += '<li class="lis-th ub-img " style="background:url('+ITEM_PICTURE+') center;background-size:100%; background-repeat:no-repeat"></li>'
    	strx += '<ul class="ub ub-ver ub-f1 t-gra tx-l" style=" margin-left:0em;">'
        strx += '<li class="zv_h1">拾获位置：'+kitschdata[i].PICK_POSITION+'<span style="float:right">'+PICK_DATE+'</span></li>'
       	strx += '<li class="zv_h1">拾获航站：'+kitschdata[i].PICK_AIRPORT+" "+kitschdata[i].FLIGHT_NO+'</li>'
        strx += '<li class="zv_h1">物品名称：'+ITEM_NAME+'</li>'
        strx += '</ul>'
        strx += '<li class="listIcon lis-sw ub-img"></li>'
        strx += '</ul>'
    	strx += '</div>'
	}
	 var kitsch_page_type=localStorage.getItem("kitsch_page_type");
	 if(kitsch_page_type==2)
	 {
		var nextpage=localStorage.getItem("kitsch_page_next");
	 	$$("LoadMore").innerHTML='<div style="height:2.6em;  line-height:2.6em;background:#e8e8e8; text-align:center; font-size:0.9em; color:#4d4d4d; overflow:hidden; display:block; border-top:solid #ffffff 1px" onclick="LoadMore('+nextpage+')">加载更多</div>'
	 }
	 else
	 {
	 	$$("LoadMore").innerHTML=''
	 }
	 
	$$("kitsch_searchresult").innerHTML=strx;
	 Loading(-1);
}	
function OpenkDetail(ID){
	IC.talkingDataCount("遗留物品录入查询","0017");
	localStorage.setItem("kitsch_ID",ID);
	openNewWin('kitsch_detailed','kitsch_detailed.html');
	}
</script>
</html>
